package com.hhq.demo.bean;

import java.util.Date;
import java.util.Objects;

/**
 * @author HHQ
 * @date 2021年12月12日
 * 快递实体类，与数据库对应
 */
public class Express {

    private Integer id;
    private String number;
    private String company;
    private String receiveName;
    private String receivePhone;
    private String recordPhone;
    private Integer status;
    private String code;
    private Date inTime;
    private Date outTime;

    public Express() {
    }

    public Express(String number, String company, String receiveName, String receivePhone, String recordPhone) {
        this.number = number;
        this.company = company;
        this.receiveName = receiveName;
        this.receivePhone = receivePhone;
        this.recordPhone = recordPhone;
    }

    public Express(Integer id, String number, String company, String receiveName, String receivePhone, String recordPhone, Integer status, String code, Date inTime, Date outTime) {
        this.id = id;
        this.number = number;
        this.company = company;
        this.receiveName = receiveName;
        this.receivePhone = receivePhone;
        this.recordPhone = recordPhone;
        this.status = status;
        this.code = code;
        this.inTime = inTime;
        this.outTime = outTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Express express = (Express) o;
        return Objects.equals(id, express.id) && Objects.equals(number, express.number) && Objects.equals(company, express.company) && Objects.equals(receiveName, express.receiveName) && Objects.equals(receivePhone, express.receivePhone) && Objects.equals(recordPhone, express.recordPhone) && Objects.equals(status, express.status) && Objects.equals(code, express.code) && Objects.equals(inTime, express.inTime) && Objects.equals(outTime, express.outTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, number, company, receiveName, receivePhone, recordPhone, status, code, inTime, outTime);
    }

    @Override
    public String toString() {
        return "Express{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", company='" + company + '\'' +
                ", receiveName='" + receiveName + '\'' +
                ", receivePhone='" + receivePhone + '\'' +
                ", recordPhone='" + recordPhone + '\'' +
                ", status=" + status +
                ", code='" + code + '\'' +
                ", inTime=" + inTime +
                ", outTime=" + outTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getReceivePhone() {
        return receivePhone;
    }

    public void setReceivePhone(String receivePhone) {
        this.receivePhone = receivePhone;
    }

    public String getRecordPhone() {
        return recordPhone;
    }

    public void setRecordPhone(String recordPhone) {
        this.recordPhone = recordPhone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getInTime() {
        return inTime;
    }

    public void setInTime(Date inTime) {
        this.inTime = inTime;
    }

    public Date getOutTime() {
        return outTime;
    }

    public void setOutTime(Date outTime) {
        this.outTime = outTime;
    }
}
